#include <iostream>

//继承 : is-a


class Person
{
public:
    Person():a(1),b(2)
    {

    }
    int a;
    int b;
    void eat()
    {

    }
    void sleep()
    {

    }
    void work()
    {

    }
    void print()
    {
        std::cout << "person" << std::endl;
    }

};

class Zhangsan : public Person
{
public:
       Zhangsan() : a(0)
    {

    }
    void print()
    {
        std::cout << "zhangsan" << std::endl;
    }
    using Person::eat;
    using Person::work;
    using Person::sleep;
    int a;
};



int main()
{
    Zhangsan z;
    Person a;
    z.eat();
    z.sleep();
    z.work();
    std::cout << sizeof(a) << std::endl;
    std::cout << sizeof(z) << std::endl;

    a.print();


    return 0;
}